import { createWebHistory, createRouter } from 'vue-router'
import Layout from '@/layout'
import BasicGrammar from './modules/BasicGrammar'

// 公共路由
export const routes = [
  {
    path: '/',
    component: Layout,
    redirect: '/basic-grammar'
  },
  BasicGrammar
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router
